package com.visionblue.business.ship.model.bean.local

/**
 * @author: xlh
 * @date: 2020-05-29 5:19 PM
 * @desc:
 */
class WaterFlowInfo {

    /**
     * 累计流量
     */
    var positiveAccumulationVal: Double = 0.0
    /**
     * 瞬时流量
     */
    var instantFlowRate: Double = 0.0
    /**
     * 瞬时流速
     */
    var instantFlowSpeed: Double = 0.0
    /**
     * 流量百分比
     */
    var flowRatePercent: Double = 0.0
    /**
     * 流体电导比
     */
    var flowElectronicRate: Double = 0.0
    /**
     * 正向累计数值整数部分
     */
    var positiveAccumulationIntPart: Long = 0
    /**
     * 正向累计数值小数部分
     */
    var positiveAccumulationDecimalPart: Double = 0.0
    /**
     * 反向累计数值整数部分
     */
    var negativeAccumulationIntPart: Long = 0
    /**
     * 反向累计数值小数部分
     */
    var negativeAccumulationDecimalPart: Double = 0.0
    /**
     * 瞬时流量单位
     */
    var instantFlowUnit: InstantFlowUnit? = null
    /**
     * 累计流量单位
     */
    var accumulationFlowUnit: String = "m3"
    /**
     * 上限报警
     */
    var isUpperLimitWarning: Boolean = false
    /**
     * 下限报警
     */
    var isLowerLimitWarning: Boolean = false
    /**
     * 空管报警
     */
    var isEmptyWarning: Boolean = false
    /**
     * 系统报警
     */
    var isSystemWarning: Boolean = false
    override fun toString(): String {
        return "WaterFlowInfo(positiveAccumulationVal=$positiveAccumulationVal, instantFlowRate=$instantFlowRate, instantFlowSpeed=$instantFlowSpeed, flowRatePercent=$flowRatePercent, flowElectronicRate=$flowElectronicRate, positiveAccumulationIntPart=$positiveAccumulationIntPart, positiveAccumulationDecimalPart=$positiveAccumulationDecimalPart, negativeAccumulationIntPart=$negativeAccumulationIntPart, negativeAccumulationDecimalPart=$negativeAccumulationDecimalPart, instantFlowUnit=$instantFlowUnit, accumulationFlowUnit='$accumulationFlowUnit', isUpperLimitWarning=$isUpperLimitWarning, isLowerLimitWarning=$isLowerLimitWarning, isEmptyWarning=$isEmptyWarning, isSystemWarning=$isSystemWarning)"
    }


}